<?php


namespace app\validates;


use think\Validate;

class AdminValidate extends Validate {
    protected $rule =   [
        'id'  => 'require',
        'username'  => 'require',
        'password'  => 'require',
    ];

    protected $message  =   [
        'id.require' => 'ID不能为空',
        'username.require' => '账号不能为空',
        'password.require' => '密码不能为空',
    ];

    protected $scene = [
        'login'  =>  ['username', 'password'],
    ];
}